package com.naiterui.ehp.bs.b2c.product.service;

import com.naiterui.common.repository.page.PageVO;
import com.naiterui.ehp.bp.bo.doctor.product.ProductInfoBO;
import com.naiterui.ehp.bp.bo.doctor.product.ProductSearchParamBO;
import com.naiterui.ehp.bp.support.exception.BusinessException;

/**
 * 医生常用药
 * 
 * @author yangfuya
 * @since 2022/3/29
 */
public interface ICommonDrugService {

    /**
     * 医生常用药我的列表
     * 
     * @param productSearch
     * @return
     */
    PageVO<ProductInfoBO> list(ProductSearchParamBO productSearch);

    /**
     * 医生常用药使用列表
     *
     * @param productSearch
     * @return
     */
    PageVO<ProductInfoBO> useList(ProductSearchParamBO productSearch);

    /**
     * 添加常用药
     * 
     * @param doctorId
     *            医生id
     * @param productId
     *            药品id
     * @throws BusinessException
     */
    void addCommonDrug(Long doctorId, Long productId) throws BusinessException;

    /**
     * 移除常用药
     *
     * @param doctorId
     *            医生id
     * @param productId
     *            药品id
     * @throws BusinessException
     */
    void removeCommonDrug(Long doctorId, Long productId) throws BusinessException;
}
